import request from "../utils/http";

// 获取就餐人数统计 GET /costStatistics/diningCount
export function getDiningCountStat(params) {
  return request({
    url: "/costStatistics/diningCount",
    method: "get",
    params: params,
  });
}

// 按分类统计出库数量 GET /costStatistics/categoryOutboundQuantityStat
export function getCategoryOutboundQuantityStat(params) {
  return request({
    url: "/costStatistics/categoryOutboundQuantityStat",
    method: "get",
    params: params,
  });
}

// 按分类和档口统计出库总金额 GET /costStatistics/purchaseCostAnalysis
export function getPurchaseCostAnalysis(params) {
  return request({
    url: "/costStatistics/purchaseCostAnalysis",
    method: "get",
    params: params,
  });
}

// 按档口统计总金额 GET /costStatistics/stallCostRatioStat
export function getStallCostRatioStat(params) {
  return request({
    url: "/costStatistics/stallCostRatioStat",
    method: "get",
    params: params,
  });
}

// 按分类统计食材种类数量 GET /costStatistics/goodsCountByCategoryStat
export function getGoodsCountByCategoryStat() {
  return request({
    url: "/costStatistics/goodsCountByCategoryStat",
    method: "get",
  });
}

// 按日期统计每日总成本 GET /costStatistics/dailyTotalCostStat
export function getDailyTotalCostStat(params) {
  return request({
    url: "/costStatistics/dailyTotalCostStat",
    method: "get",
    params: params,
  });
}
